package server.main.utils.mainutils;

import java.io.IOException;

/************
 *
 *@author : MingHs
 *@create : 2022/6/6
 *****************
 */
public class AllCharge {

    //获取到指定路径
    public static void restart() {

        try {
            Process p = Runtime.getRuntime().exec("java restart");
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }



    public static void stop() {
        try {
            Process p = Runtime.getRuntime().exec("java stop");
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }


}
